SELECT least_squares_polynom_array(ARRAY(Select gh_x from test_table), ARRAY(Select gh_y from test_table), (SELECT count(*) FROM test_table))

SELECT lineal_pices(ARRAY(Select gh_x from test_table), ARRAY(Select gh_y from test_table), (SELECT count(*) FROM test_table))

SELECT calc_values_by_polynom(ARRAY(Select gh_x from test_table), ARRAY[1.0, 2.0], (SELECT count(*) FROM test_table), 2)

SELECT calc_value_by_polynom(ARRAY[1.0, 2.0], 2, test_table.gh_x) from test_table

SELECT lineal_calc_values(ARRAY(Select gh_x from test_table), (SELECT count(*) FROM test_table), ARRAY[1.0, 2.0, 1.0, 2.0], ARRAY[0, 100], 2)

SELECT lineal_calc_value(ARRAY[1.0, 2.0, 1.0, 2.0], ARRAY[0, 100], 2, test_table.gh_x) from test_table
